package com.amumu.drama.mapper;

import com.amumu.drama.common.dto.GameSkuDTO;
import com.amumu.drama.model.PmsSkuStock;
import com.amumu.drama.model.PmsSkuStockExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PmsSkuStockMapper extends BaseMapper<PmsSkuStock> {
    long countByExample(PmsSkuStockExample example);

    int deleteByExample(PmsSkuStockExample example);

    int deleteByPrimaryKey(Long id);

//    int insert(PmsSkuStock record);

    int insertSelective(PmsSkuStock record);

    List<PmsSkuStock> selectByExample(PmsSkuStockExample example);

    PmsSkuStock selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example);

    int updateByExample(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example);

    int updateByPrimaryKeySelective(PmsSkuStock record);

    int updateByPrimaryKey(PmsSkuStock record);

    List<GameSkuDTO> pageGameSkuList(@Param(value = "skuCode") String skuCode, @Param(value = "gameName") String gameName, @Param(value = "publishStatus") Integer publishStatus);
}